package com.yuexunit.account.action.v2.model;

import com.yuexunit.web.annotation.Parameter;


/**
 * @author wangjinshui
 */
public class Session {
	@Parameter(description="session uuid")
	private String sessionUuid;
	
	@Parameter(description="帐号ID")
	private Long accountId;

	@Parameter(description="帐号在应用中的角色类型")
	private Integer appRoleType;
	
	public String getSessionUuid() {
		return sessionUuid;
	}

	public void setSessionUuid(String sessionUuid) {
		this.sessionUuid = sessionUuid;
	}

	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}
	
	public Integer getAppRoleType() {
		return appRoleType;
	}

	public void setAppRoleType(Integer appRoleType) {
		this.appRoleType = appRoleType;
	}
	

	@Override
	public String toString() {
		StringBuffer result = new StringBuffer();
		
		result.append(getClass().getName())
			.append(": sessionUuid='").append(sessionUuid).append("'")
			.append(", accountId=").append(accountId).append("")
			.append(", appRoleType=").append(appRoleType).append("")
			;
		
		return result.toString();
	}
}
